data remove entity @n[tag=UI-gamerule_control.ctr.IA,distance=..1,type=interaction] interaction
#根据当前规则类型使用修改方式

#boolean
$execute if data storage dab:system gameRule[$(SG)].settings{type:"boolean"} run function dab:system/ui/gamerules/change_gamerule/bool {SG:$(SG)}